﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;
using System.Data.Sql;
using QuanLyThuVien.BUS;
using QuanLyThuVien.VO;
using QuanLyThuVien.DAL;

namespace QuanLyThuVien
{
    public partial class frmSuaQuyenNguoiDung : Form
    {

         busNguoiDung busNguoiDung= new busNguoiDung();

        public frmSuaQuyenNguoiDung()
        {
            InitializeComponent();
        }

        private void frmSuaQuyenNguoiDung_Load(object sender, EventArgs e)
        {
            dtgvNguoiDung.DataSource = busNguoiDung.DanhSachNguoiDung(frmChinh.NguoiDung.TenNguoiDung);
            dtgvNguoiDung.DataMember = "NguoiDung";
        }

        private void btnOK_Click(object sender, EventArgs e)
        {
            busNguoiDung.CapNhatNguoiDung();
            this.Close();
        }

        private void btnHuy_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
